/*
 * @Author: Suo-Yuheng syh15399227325@163.com
 * @Date: 2025-09-10 22:32:02
 * @LastEditors: Suo-Yuheng syh15399227325@163.com
 * @LastEditTime: 2025-09-11 10:01:38
 * @FilePath: /0910/HttpServer.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "HttpServer.hpp"
#include <iostream>
#include <memory>

using namespace std;

int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        std::cout << "Input Error" << std::endl;
        exit(1);
    }
    uint16_t port = stoi(argv[1]);

    unique_ptr<HttpServer> svr(new HttpServer(port));
    svr->Start();




    return 0;
}